/*
 * @Author: DESKTOP-DOGAKD5\86185 134668
 * @Date: 2022-11-10 11:33:05
 * @LastEditors: DESKTOP-DOGAKD5\86185 134668
 * @LastEditTime: 2022-11-10 15:21:37
 * @FilePath: \vue2-demo\src\router\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/view/Home'
import MyCollection from '@/view/MyCollection'
import Cange from '@/view/Cange'
import Detail from '@/view/Detail'
Vue.use(Router)

export default new Router({
    routes: [{
            path: '/',
            name: 'Home',
            component: Home
        },
        {
            path: '/MyCollection',
            name: 'MyCollection',
            component: MyCollection
        },
        {
            path: '/Cange/:name',
            name: 'Cange',
            component: Cange
        },
        {
            path: '/Detail',
            name: 'Detail',
            component: Detail
        }
    ]
})